import instance from "@/utils/request";

// 定义登录接口
export function loginapi(data: {
    username: string,
    pwd: string
}) {
    return instance({
        url: '/auth/loginByWeb',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'application/json'
        }
    })
}